﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using BOHVote.DAL;

namespace BOHVote.BLL
{
    public static class NotifyClass
    {
        #region <<  Notify Info  >>

        public static DataSet getAllNotify()
        { 
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", "", "", "","I");
            return dst;
        }

        public static DataSet getNotifyByID(string NotifyID)
        {
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", NotifyID, "", "", "I");
            return dst;
        }

        public static DataSet getAllVerifiedNotify()
        {
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", "", "P", "A", "I");
            return dst;
        }

        public static int UpdateNotify(string NotifyID, string NotifyTitle, string NotifyVerify, string NotifyStatus, string NotifyContext,string UserID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.UpdateNotify(NotifyID, NotifyTitle, NotifyVerify, NotifyStatus, NotifyContext,UserID,"I");
        }

        public static int InsertNotify(string NotifyTitle, string NotifyVerify, string NotifyStatus, string NotifyContext,string UserID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.InsertNotify(NotifyTitle, NotifyVerify, NotifyStatus, NotifyContext, UserID,"I");
        }


        public static int DeleteNotify(string NotifyID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.DeleteNotify(NotifyID,"I");
        }
        #endregion

        #region <<  Notify File  >>

        public static DataSet getAllNotifyFile()
        {
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", "", "", "", "F");
            return dst;
        }

        public static DataSet getNotifyFileByID(string NotifyID)
        {
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", NotifyID, "", "", "F");
            return dst;
        }
        public static DataSet getAllVerifiedNotifyFile()
        {
            NotifyProivde NP = new NotifyProivde();
            DataSet dst = NP.getAllNotify("", "", "P", "A", "F");
            return dst;
        }
        public static int UpdateNotifyFile(string NotifyID, string NotifyTitle, string NotifyVerify, string NotifyStatus, string NotifyContext, string UserID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.UpdateNotify(NotifyID, NotifyTitle, NotifyVerify, NotifyStatus, NotifyContext,UserID,"F");
        }

        public static int InsertNotifyFile(string NotifyTitle, string NotifyVerify, string NotifyStatus, string NotifyContext, string UserID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.InsertNotify(NotifyTitle, NotifyVerify, NotifyStatus, NotifyContext, UserID,"F");
        }

        public static int DeleteNotifyFile(string NotifyID)
        {
            NotifyProivde NP = new NotifyProivde();

            return NP.DeleteNotify(NotifyID, "F");
        }
        #endregion
    }
}
